package cn.ad.service;


import cn.ad.entity.AdMaterialAudit;
import cn.ad.handler.SqlSessionHandler;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.HashMap;
import java.util.Map;

/**
 * 素材审核服务层
 *
 * @author yujuan.zhang
 * @from 2016-09-09
 * @since FMOBI V1.0
 */
@Service
public class AdMaterialAuditService {

	@Autowired
	private SqlSessionHandler sqlSessionHandler;

	public AdMaterialAudit getMaterialAuditInfo(Integer creativeId, Integer materialId, Integer platformId) {
		Map<String, Object> mapParams = new HashMap<>();
		mapParams.put("creativeId", creativeId);
		mapParams.put("materialId", materialId);
		mapParams.put("platformId", platformId);
		return sqlSessionHandler.selectOne("adMaterialAuditMapper.material:audit:info", mapParams);
	}

}
